{include file="header.html"}
<div> 
{include file='kucun/nav.html'}
{get data=typelist model=kucun fun=typelist()}
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>kcid</td>
    
   <td>名称</td>
   <td>status</td>
   <td>类型</td>
    
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.kcid}</td>
   
   <td>{$c.title}</td>
   <td>{$c.status}</td>
   <td>{$typelist[$c[typeid]]}</td>
    
<td><a href="{$appadmin}?m=kucun&a=add&kcid={$c.kcid}">编辑</a> 
<a href="{$appadmin}?m=kucun_admin&shopid={$c.kcid}">管理员</a> 
<a href="{$appadmin}?m=kucun_area&shopid={$c.kcid}">配送区域</a>

<a href="{$appadmin}?m=kucun_product&shopid={$c.kcid}">产品管理</a>
<a href="{$appkucun}?m=login&a=admin&kcid={$c.kcid}" target="_blank">去管理</a>
{if $c.koudai eq 0}
<a href="javascript:;" class="delete" url="{$appadmin}?m=kucun&a=delete&kcid={$c.kcid}">删除</a>
{/if}
</td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div> 
{include file="footer.html"}